package cn.stylefeng.guns.sys.core.exception.enums;

import cn.stylefeng.roses.kernel.model.exception.AbstractBaseExceptionEnum;

/**
 * @author gyz
 */
public enum BusExceptionEnum implements AbstractBaseExceptionEnum {

    NO_PHONE(2001,"此人档案不存在，请联系孙娇添加档案"),
    NO_WX(2002,"查无此人，请确认手机号是否一致且已绑定部门"),//根据手机号未找到微信信息，推送微信消息失败
    NO_WX_ROLE(2003,"根据角色未找到微信信息，请确认是否有角色身份"),//根据角色未找到微信信息，推送微信消息失败
    Err_UPDATE_STATUS(2004,"任务状态更新异常，请联系管理员处理"),

    ERR_COPY_YUSUAN(2005,"复制预算数据失败!"),
    ERR_COPY_CHENGBEN(2006,"复制成本数据失败!"),
    ERR_COPY_MDZX(2007,"复制门店装修信息失败!"),
    ERR_INSERT(2008,"保存数据时有误!"),
    ERR_INIT_YUSUAN(2009,"初始化预算数据失败!"),
    ERR_NO_USER(500,"系统中未找到'督导'用户信息!"),
    ERR_NO_USER_YYJL(500,"系统中未找到'营运经理'用户信息!"),
    ERR_NO_USER_CASHIER(500,"系统中未找到'收银系统负责人'用户信息!"),
    ERR_NO_USER_DESIGNER_ZJ(500,"系统中未找到'设计总监'用户信息!"),
    ERR_NO_USER_DESIGNER(500,"系统中未找到'设计负责人'用户信息!"),
    ERR_NO_YYZJOK(500,"营运总监未确认"),
    ERR_NO_YYJLOK(500,"营运经理未指定"),
    ERR_NO_DDOK(500,"督导未指定"),
    ERR_MISS_PARAM(500,"缺少必要参数"),
    ERR_SETYAOMA(500,"设置工程妖码时出错，请联系管理员"),
    ERR_DEFAULT(500,"微信推送失败"),


    NO_PHONE2(2999,"xx");



    private int code;
    private String message;

    BusExceptionEnum(int code,String message){
        this.code=code;
        this.message=message;
    }
    public void setCode(Integer code) {
        this.code = code;
    }
    public void setMessage(String message) {
        this.message = message;
    }
    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
